from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.

def adminIndex(request):
    return render(request,"admin/index.html")
def studentIndex(request):
    return render(request,"student/index.html")
def teacherIndex(request):
    return render(request,"teacher/index.html")

def worker_add(request):
    w_id = request.POST.get("w_id")
    w_name = request.POST.get("w_name")
    str = f'现在查看的是第{w_id}页，每页大小{w_name}'
    print(str)
    return HttpResponse(f"{w_name}球员添加成功")

